
// B. Herbomez 2011

#include "Traductor.h"

Traductor::Traductor(Robot *r){
	this->mRobot = r;
}

void Traductor::perform(int code, long value){
	switch(code){
		case 8	:	this->mRobot->GoForward(value);		break;
		case 4	:	this->mRobot->TurnLeft(value);		break;
		case 6	: 	this->mRobot->TurnRight(value);		break;
		case 5	: 	this->mRobot->TurnOnPlace(value);	break;
		default : 	break;
	}
}
